package com.weijian.dal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weijian.dal.entity.StudyStatistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 学习统计Mapper接口
 */
@Mapper
public interface StudyStatisticsMapper extends BaseMapper<StudyStatistics> {
    
    /**
     * 根据用户ID查询学习统计
     */
    @Select("SELECT * FROM study_statistics WHERE user_id = #{userId}")
    StudyStatistics selectByUserId(@Param("userId") Long userId);
}